package cn.learn.designpattern.strategy.algorithm;


import cn.learn.designpattern.strategy.PriceRegion;
import cn.learn.designpattern.strategy.SalePrice;

import java.math.BigDecimal;

/**
 * 黄金VIP会员
 * @author huangyezhan
 * @date 2018/11/20-22:51
 */

@PriceRegion(min=30000)
public class GoldVip implements SalePrice {
    @Override
    public BigDecimal salePrice(BigDecimal orgnicPrice) {
        return orgnicPrice.multiply(new BigDecimal("0.7"));
    }
}
